package com.springinaction.shopping;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
public class MyShoppingCart implements ShoppingCart {
	
	@Autowired
	public Environment environment;
	
	public void goShopping(){
		String title = environment.getRequiredProperty("goods.title");
		System.out.println(title);
	}
}
